import request from '/@/utils/request';
import { AxiosRequestConfig } from 'axios';

//================================================================
// 获取模型列表 分页查询
export const QueryPageList = (params?: object) => {
	return request({
		url: '/ITS/Model/QueryPageList',
		method: 'post',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
}

// 模型 新增
export const Add = (params?: object) => {
	return request({
		url: '/ITS/Model/Add',
		method: 'post',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
}

// 模型 编辑
export const Update = (params?: object) => {
	return request({
		url: '/ITS/Model/Update',
		method: 'post',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
}

// 模型 删除
export const Delete = (params?: object) => {
	return request({
		url: '/ITS/Model/Delete',
		method: 'post',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
}

//模型 详情
export const Get = (params?: object) => {
	return request({
		url: '/ITS/Model/Get',
		method: 'get',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
}

//模型 包含绑定关系详情
export const GetDetailWithBind = (params?: object) => {
	return request({
		url: '/ITS/Model/GetDetailWithBind',
		method: 'get',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
}

// 获取下拉列表
export const DropDownList = (params?: object) => {
	return request({
		url: '/ITS/model/DropDownList',
		method: 'get',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
}